package com.py.feign.controller;

import com.py.feign.service.FeignServiceHello;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
public class FeignController {

    @Resource
    private FeignServiceHello feignServiceHello;

    @GetMapping(value = "/hello")
    public String hello(@RequestParam String name) {
        return feignServiceHello.sayHelloFromClientOne(name);
    }
}
